Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 5 - Menu Manager Reference / Menu Manager Types and Constants


Menu Definition IDs

CHANGED WITH THE APPEARANCE MANAGER

A menu definition ID is supplied to the menu resource or a menu-creation function such as NewMenu to specify which menu definition function to use in creating the menu. The menu definition ID contains the resource ID of the menu definition function.

When mapping is enabled, the pre-Appearance menu definition ID textmenuProc will be mapped to kMenuStdMenuProc, its Appearance-compliant equivalent. For a discussion on how to enable mapping, see "Introduction to the Appearance Manager".

enum {            
   textmenuProc        = 0,
   kMenuStdMenuProc    = 63,
   kMenuStdMenuBarProc = 63
};

Constant descriptions

textmenuProc
The menu definition ID for menus that are not Appearance-compliant.
kMenuStdMenuProc
The menu definition ID for Appearance-compliant menus.
kMenuStdMenuBarProc
The menu bar definition ID for Appearance-compliant menu bars.
WHEN THE APPEARANCE MANAGER IS NOT AVAILABLE
Only the menu definition ID constant textmenuProc (or the definition ID for a custom menu definition function) is supported.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998